package pl.softech.oldchart;

import java.awt.geom.Point2D;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import pl.softech.oldchart.AbstractGraph2DModel;

public class SimpleData3 extends AbstractGraph2DModel {

	private List<Point2D> list = new LinkedList<Point2D>();
	
	public SimpleData3() {
		double a = 1;
		double b = 1;
		double c = -10;
		double y;
		for(double x = -5; x < 5; x+=0.5) {
			y = a * x * x + b * x + c;
			list.add(new Point2D.Double(x,y));
		}
		
	}
	
	@Override
	public double getMaxX() {
		
		return 10;
	}

	@Override
	public double getMaxY() {
		
		return 20;
	}

	@Override
	public double getMinX() {
		
		return -20;
	}

	@Override
	public double getMinY() {
		
		return -20;
	}

	@Override
	public Collection<Point2D> getPoints() { return list; }

	@Override
	public Map<Point2D, String> getPointsLabels() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Map<Double, String> getXAxisLabels() {
		
		return null;
	}

	@Override
	public Map<Double, String> getYAxisLabels() {
		
		return null;
	}

	@Override
	public boolean showXAxisLabels() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public boolean showYAxisLabels() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return "parabola";
	}
	
}
